package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.Article;
import com.weipai.springboot.model.ArticleCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper {
    int deleteByPrimaryKey(String articleId);

    int insert(Article record);

    int insertSelective(Article record);

    //根据id 查询新闻详情
    Article selectByPrimaryKey(String articleId);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);

    //查询新闻列表
    List<Article> selectAllByArticle(@Param("articleStatus") int articleStatus, @Param("search") String search,
                                    @Param("way") String way, @Param("categoryId") String categoryId);

    
}